#![windows_subsystem = "windows"]

use html_runner::moudles::load_config;
use html_runner::moudles::load_config::Settings;
use html_runner::moudles::wry_check_for_win;
use html_runner::moudles::wry_main;
use std::error::Error;

fn main() -> Result<(), Box<dyn Error>> {
    // env_logger::init(); // 初始化日志
    let checked = wry_check_for_win::check();
    // 假设添加错误处理
    let setting: Settings = load_config::load_config();
    if checked {
        wry_main::show(setting);
    }
    Ok(())
}
